<%-- 
    Document   : chitietnhadat
    Created on : 04-03-2012, 13:55:16
    Author     : Xe Bay
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml"  prefix="x" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html>
    <head>
        <title>Home Page</title>
        <link rel="stylesheet" type="text/css" href="style.css" title="style"/>
        <link rel="stylesheet" type="text/css" href="popup.css" title="style"/>
        <script type="text/javascript" src="script/common.js"></script>
        <script type="text/javascript" src="script/search.js"></script>
        <script type="text/javascript" src="script/tab.js"></script>
        <script type="text/javascript" src="script/popup.js"></script>
        <script type="text/javascript" src="script/checkRegister.js"></script>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    </head>
    <body>
        <c:set var="INFO" value="<%= session.getAttribute("INFO")%>"/>

        <jsp:include page="popupDangNhap.jsp" flush="true"/>
        <jsp:include page="popupDangki.jsp" flush="true"/>
        <jsp:include page="lienhe.jsp" flush="true"/>
        <div id="userinfo" style="margin-left: 900px">
            <logic:present name="LoginActionForm" property="nguoiDung">
                Xin chào, ${sessionScope.LoginActionForm.nguoiDung.ho} ${sessionScope.LoginActionForm.nguoiDung.ten} (<a href="logout.do">Đăng xuất</a>)
            </logic:present>
            <logic:notPresent name="LoginActionForm" property="nguoiDung">
                <a href="javaScript: showHidePopup('dangnhapFormPopup','block');">Đăng nhập</a>
                |
                <a href="javaScript: showHidePopup('popupRegister','block');">Đăng kí</a>
            </logic:notPresent>
        </div>


        <div id="wrapper">
            <div id="header">
                <div id="logo">
                    <h1><a href="#">Nhà Đất</a></h1>
                </div>
                <div id="menu">
                    <ul>
                        <li><a href="homepage.do">Trang Chủ</a></li>
                        <li><a href="tinHot.do">Tin Nổi Bật</a></li>
                        <li><a href="tinmoi.do">Tin Mới</a></li>
                        <li><a href="#">Thông Tin Cty</a></li>
                        <li class="last"><a href="#"><a href="javaScript: showHidePopup('lienhe','block');">Liên Hệ</a></a></li>
                    </ul>
                    <br class="clearfix" />
                </div>
            </div>

            <div id="page">
                <form action="getPDF.do" method="POST">
                    <div id="contentChitiet">
                        <div class="box">


                            <table width="900px" >
                                <tbody>
                                    <tr>
                                        <td  rowspan="5"><img src="${INFO.hinhanh}" border="1" width="600px"></td>
                                        <td valign="top">
                                            <div id="msts"> Mã số tài sản: ${INFO.matindang}<br/></div>
                                        </td>
                                    </tr>

                                    
                                    <tr>
                                        <td>
                                            <div id="thongtinlienhe">
                                                <div id="lienhe">${INFO.tieudetin}</div>
                                                ${INFO.thongtinchitiet}

                                            </div>
                                        </td>
                                    </tr>

                                </tbody>
                            </table>

                        </div>


                        <div style="background: #ffffff; width: 850px">
                            <div class="box">
                                <table width="850">

                                    <thead>
                                        <tr>
                                            <td colspan="3" align="left" bgcolor="82D9ED" ><div style="color: #2C84AF;"> Thông tin chi tiết</div></td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td colspan="3">Người đăng tin: ${INFO.tblNguoiDung.tendangnhap} <br/>
                                                <div style="margin-left:100px">${INFO.tblNguoiDung.ho} ${INFO.tblNguoiDung.ten}</div> <br/>
                                                <div style="margin-left:100px">Số điện thoại: ${INFO.tblNguoiDung.dienthoai} </div> <br/>
                                                <div style="margin-left:100px">DTDD: ${INFO.tblNguoiDung.dienthoaididong}</div> <br/>
                                                <div style="margin-left:100px">EMail: ${INFO.tblNguoiDung.email}</div> <br/>
                                            </td>
                                        </tr>
                                        <tr>
                                    <table border="1" width="850">
                                        <tr>
                                            <td colspan="3"><div style="color: #FDD017;">Cấu trúc và tiện ích</div></td>

                                        </tr>
                                        <tr >
                                            <td width="400px"><div style="font-style: italic">Diện tích xây dựng: ${INFO.dientichxaydung}${INFO.dvddientichxaydung}</div></td>
                                            <td width="450px">Loại địa ốc: ${INFO.tblLoaiNha.tenloainha}</td>
                                        </tr>
                                        <tr >
                                            <td width="400px"><div style="padding-left: 40px">  Chiều ngang : ${INFO.chieungangxaydung}${INFO.dvdchieungangxaydung}</div></td>
                                            <td width="450px">Pháp Lý: ${INFO.tblLoaiGiayTo.tenloaigiayto}</td>
                                        </tr>
                                        <tr>
                                            <td  width="400px"><div style="padding-left: 40px"> Chiều dài   : ${INFO.chieudaixaydung}${INFO.dvdchieudaixaydung}</div></td>
                                            <td width="450px">Địa chỉ: ${INFO.diachi}</td>
                                        </tr>
                                        <tr>
                                            <td  width="400px"><div style="font-style: italic"> Diện tích khuôn viên: ${INFO.dientichkhuonvien}${INFO.dvddientichkhuonvien}</div></td>
                                            <td width="450px">Khu Vực: - Tỉnh/Thành Phố: ${INFO.tblKhuVuc.tinhthanh}</td>
                                        </tr>
                                        <tr>
                                            <td width="400px"><div style="padding-left: 40px">  Chiều ngang : ${INFO.chieungangkhuonvien}${INFO.dvdchieungangkhuonvien}</div></td>
                                            <td width="450px"><div style="padding-left: 80px"> - Quận/Huyện: ${INFO.tblKhuVuc.quanhuyen}</div></td>
                                        </tr>
                                        <tr>
                                            <td width="400px"><div style="padding-left: 40px">  Chiều dài   : ${INFO.chieudaikhuonvien}${INFO.dvdchieudaikhuonvien}</div></td>
                                            <td width="450px">Giá Tiền: ${INFO.giatien} ${INFO.dvdgiatien}</td>
                                        </tr>

                                    </table>
                                    </tr>
                                    </tbody>

                                </table>
                            </div>
                        </div>
                        <br/>

                        <input type="hidden" name="msts" value="${INFO.matindang}"/>
                        <center><input type="submit" name="btnPDF" value="File PDF" size="30,20" /></center>
                    </div>
                </form>
            </div>
        </div>


    </body>
</html>
